.NET Framework Class Library |
ConcurrentStack<(Of <(T>)>) Constructor (IEnumerable<(Of <(T>)>)) |
ConcurrentStack<(Of <(T>)>) Class See Also Send Feedback |
Initializes a new instance of the ConcurrentStack<(Of <(T>)>)
class that contains elements copied from the specified collection
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ collection As IEnumerable(Of T) _ ) |
C# |
---|
public ConcurrentStack( IEnumerable<T> collection ) |
Parameters
- collection
- Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
The collection whose elements are copied to the new ConcurrentStack<(Of <(T>)>).
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | The collection argument is null. |